Skip to content

internal: create cloud studio session ID to group telemetry and errors #31833

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 12, 2025

Conversation

astone123
Copy link
Contributor

@astone123 astone123 commented Jun 5, 2025

Additional details

This PR adds logic to generate a UUID when a user enters studio. This ID is then passed to the studio panel which will pass it to telemetry and error handlers in order for us to be able to group logs by studio session.

Related Cloud PR: https://github.com/cypress-io/cypress-services/pull/10927

Steps to test

Set Studio up to run with the local cloud bundle from the related cloud PR, open studio and verify that the generate call is provided with a UUID for the session. The UUID should be different each time you enter and exit studio.

How has the user experience changed?

No interface changes - this is purely for telemetry

PR Tasks

@astone123 astone123 self-assigned this Jun 5, 2025
Copy link

cypress bot commented Jun 5, 2025

cypress    Run #63021

Run Properties:  status check failed Failed #63021  •  git commit 4cfa64a575: Merge branch 'develop' into studio-session-id
Project cypress
Branch Review studio-session-id
Run status status check failed Failed #63021
Run duration 21m 11s
Commit git commit 4cfa64a575: Merge branch 'develop' into studio-session-id
Committer astone123
View all properties for this run ↗︎

Test results
Tests that failed  Failures 3
Tests that were flaky  Flaky 9
Tests that did not run due to a developer annotating a test with .skip  Pending 1232
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 32159
View all changes introduced in this branch ↗︎
UI Coverage  45.56%
  Untested elements 191  
  Tested elements 164  
Accessibility  92.77%
  Failed rules  3 critical   9 serious   2 moderate   2 minor
  Failed elements 695  

Tests for review

Failed  settings/project/RecordKey.cy.tsx • 1 failed test • app-ct

View Output

Test Artifacts
An uncaught error was detected outside of a test Test Replay
Failed  specs/SpecsListRowItem.cy.tsx • 2 failed tests • app-ct

View Output

Test Artifacts
SpecItem > renders a SpecsListRowItem as leaf Test Replay
SpecItem > renders a SpecsListRowItem as non-leaf Test Replay
Flakiness  issues/28527.cy.ts • 1 flaky test • 5x-driver-electron

View Output

Test Artifacts
issue 28527 > fails and then retries and verifies about:blank is not displayed Test Replay Screenshots
Flakiness  issues/28527.cy.ts • 1 flaky test • 5x-driver-chrome:beta

View Output

Test Artifacts
issue 28527 > fails and then retries and verifies about:blank is not displayed Test Replay Screenshots
Flakiness  commands/net_stubbing.cy.ts • 1 flaky test • 5x-driver-firefox

View Output

Test Artifacts
... > stops waiting when an xhr request is canceled
    </td>
  </tr></table>
Flakiness  issues/28527.cy.ts • 1 flaky test • 5x-driver-firefox

View Output

Test Artifacts
issue 28527 > fails and then retries and verifies about:blank is not displayed Screenshots
Flakiness  studio/studio.cy.ts • 1 flaky test • app-e2e

View Output

Test Artifacts
Cypress Studio > does not remove the studio url parameters if saving fails Test Replay Screenshots

The first 5 flaky specs are shown, see all 9 specs in Cypress Cloud.

@ryanthemanuel ryanthemanuel merged commit ef1a73b into develop Jun 12, 2025
84 of 89 checks passed
@ryanthemanuel ryanthemanuel deleted the studio-session-id branch June 12, 2025 16:43
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Jun 17, 2025

Released in 14.5.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v14.5.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Jun 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants